import os

from aligo import Aligo, GetShareFileListRequest, BaseFile

if __name__ == '__main__':
    ali = Aligo()
    # share_id = 'ut4wpyJXLUL'
    # share_token = ali.get_share_token(share_id)
    # print(share_token)
    # share_file_list = ali.get_share_file_list(share_token=share_token.share_token, share_id=share_id,
    #                                           parent_file_id='636c9bfd4ba6ae1d01514330b305eb77c5dd87cb')
    # for item in share_file_list:
    #     print(item)
    # share_file_list = ali.get_share_file_list(share_id, share_token.share_token, share_file_list[-1].parent_file_id)
    # print(share_file_list)
    # a = ali.get_share_link_download_url(share_id, share_file_list[-4].file_id, share_token.share_token)
    # print(a)
    # ali.download_file(url=a.download_url, file_path=share_file_list[-4].name)
    # a = ali.rewards_space('福利码来了jNHxc')
    # print(a)
